package dao

import (
	"WORKSPACE/models"
	"fmt"
)

func GetAllemployesswage() (error, []models.Employesswage, int64) {
	var EmployesswageData []models.Employesswage
	var total int64
	//fmt.Println(AllwageData)
	err := db.Table("employesswage").Order("wdata ASC").Count(&total).Find(&EmployesswageData).Error
	fmt.Println(EmployesswageData)
	return err, EmployesswageData, total
}